package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum MemberLevel {
    none(0, "非会员"),
    one(1, "一级会员"),
    two(2, "二级会员"),
    three(3, "三级会员");

    @EnumValue
    private final int code;
    private final String desc;

    MemberLevel(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
